package com.lizhenhua.orderclose.feiclient;

import com.lizhenhua.fmmall.beans.ProductSku;
import com.lizhenhua.orderclose.follback.StockUpdateFollBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "stock-update", fallback = StockUpdateFollBack.class)
public interface UpdateProductStockFeignClient {
    @PutMapping("/stock-update/update")
    public int update(@RequestBody List<ProductSku> skus);


}
